package cn.bdqn.common.vo;

import cn.bdqn.common.enums.ExcptionEnum;

/***
 *  全局异常器
 *  定义人:组长
 */
public class ExceptionResult {

    private int status;
    private String message;
    private Long timestamp;

    public ExceptionResult(ExcptionEnum em) {
        this.status =em.getCode();
        this.message =em.getMsg();
        this.timestamp =System.currentTimeMillis();
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
}
